// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.compiler;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public interface UnitParser {
  /**
   * Parses unit definition code.
   *  
   * @param code unit definition code
   * @return unit definition
   * @throws Exception in case of parse error
   */
  Unit parse(String code) throws Exception;
}
